package com.project.psc.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 供货单与供货商品表
 */
@Data
@TableName("t_supply_goods")
public class GoodsBean {
    /**
     * 供货单与供货商品表id
     */
    @TableId(value = "pk_id", type = IdType.AUTO)
    private Long id;

    /**
     * 供货单id
     */
    @TableField("fk_supplyId")
    private Long supplyId;

    /**
     * 供货商品id
     */
    @TableField("fk_goodsId")
    private Long goodsId;

    /**
     * 供货数量
     */
    @TableField("sg_num")
    private Integer num;

    /**
     * 供货商品对象
     */
    @TableField(exist = false)
    private SupplyGoodsBean supplyGoods;
}
